@import '../../scssMixin/generateClassName2.module.scss';
@import '../../scss/vars.module.scss';
:global {
    $--border-color: #ebeff3;
    $--border-darken-color: darken($--border-color, 10%);
    $--td-height: 60px;
    .z-scheduling-table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0px;
        // border: 1px solid $--border-color;
        thead > tr > td,
        tbody > tr > td {
            position: relative;
            border: 0px;
            padding: 0;
            & > div {
                // transition: all 0.1s;
                position: relative;
                height: $--td-height;
                display: flex !important;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                color: #333333;
                &:hover {
                    background-color: rgba(3, 128, 243, 0.1);
                    thead > tr > td + td,
                    tbody > tr > td + td {
                        border-left: 1px solid $--border-darken-color;
                    }
                    tbody > tr + tr {
                        border-top: 1px solid $--border-darken-color;
                    }
                    thead > tr {
                        border-bottom: 1px solid $--border-darken-color;
                    }
                }
                &.selected {
                    background-color: $primary-color;
                    color: white;
                    & > * {
                        opacity: 0.7;
                    }
                }
                &.disabled {
                    background-color: #fafafa;
                    color: #d1d3d6;
                }
                &.ant-popover-open {
                    background-color: #fff5ce;
                }
            }
        }
        thead > tr > td {
            // background-color: #F3F5F8;
            color: #333333;
            font-weight: 600;
        }
        thead > tr > td + td,
        tbody > tr > td + td {
            border-left: 1px solid $--border-color;
        }

        tbody > tr + tr {
            border-top: 1px solid $--border-color;
        }
        thead > tr {
            border-bottom: 1px solid $--border-color;
        }
        @include is('border-top') {
            border-top: 1px solid $--border-color;
        }
        @include is('border-right') {
            border-right: 1px solid $--border-color;
        }
        @include is('border-bottom') {
            border-bottom: 1px solid $--border-color;
        }
        @include is('border-left') {
            border-left: 1px solid $--border-color;
        }
    }
    .z-scheduling-table .z-scheduling-table {
        height: 100%;
    }
    .z-scheduling-swiper-slide + .z-scheduling-swiper-slide table {
        border-left: 1px solid $--border-color;
    }

    .z-scheduling-box {
        // margin-top: -1px;
        position: relative;
    }
    // @include z("scheduling-skeleton"){
    // 	position: absolute;
    // 	top:0;left: 0;width: 100%;
    // 	z-index: 2;
    // }
    .z-scheduling-tool {
        position: relative;
        border-bottom: 1px solid $--border-color;
        height: $--td-height;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .z-swiper-pagination {
        padding-right: 15px;
        counter-reset: slideNum;
        .swiper-pagination-bullet {
            margin-right: 5px;
            width: 20px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            color: #666666;
            opacity: 1;
            background-color: rgba(#000000, $alpha: 0.1);
            counter-increment: slideNum;
            outline: none;
            font-size: 12px;
            &:hover {
                background-color: rgba(#000000, $alpha: 0.3);
            }
            &::before {
                content: counter(slideNum);
            }
            &.swiper-pagination-bullet-active {
                color: white;
                background-color: $primary-color;
            }
        }
        .swiper-pagination-bullet:last-child {
            margin-right: 0;
        }
    }
    .z-scheduling-mask {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: none;
        z-index: 9;
    }
    .z-scheduling-checkcolumn {
        opacity: 1;
        transition: opacity 0.25s;
        position: relative;
        z-index: 2;
        table tbody > tr > td .ant-checkbox-wrapper {
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            & > :last-child > * {
                display: block;
            }
            width: 100%;
            height: 100%;
        }
    }
    .z-scheduling-content {
        opacity: 1;
        transition: opacity 0.25s;
        // margin-left: -1px;
        position: relative;
        z-index: 1;
        overflow: hidden;
        // width: calc(100% - 61px);
        table thead > tr > td .ant-checkbox-wrapper {
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            & > :last-child > * {
                display: block;
            }
            width: 100%;
            height: 100%;
        }
    }
    .z-scheduling {
        position: relative;
        .ant-checkbox-wrapper {
            padding: 6px;
            color: #333333;
        }
        .z-allcheck-box {
            width: 100%;
            height: 100%;
            position: relative;

            .z-cutting-line {
                border-bottom: 1px solid $--border-color;
                // background-color: $--border-color;
                position: absolute;
                top: 0;
                left: 0;
                width: 100px;
                transform: rotate(45deg);
                transform-origin: left center;
            }
            .z-all-checked {
                position: absolute;
                @include is('col') {
                    right: 3px;
                    top: 3px;
                }
                @include is('row') {
                    left: 3px;
                    bottom: 3px;
                }
            }
        }
        .z-weekend-color {
            color: red;
        }
        .z-day-disabled-color {
            color: #bfbfbf;
        }
        .z-day-disabled-bg {
            background-color: #e8eaea;
        }
        .z-data-null {
            clear: both;
            padding: 25px 0;
        }
    }
    .z-scheduling-hidden {
        opacity: 0;
        position: absolute;
    }
    .z-scheduling-popover {
        z-index: 100;
        .ant-checkbox-wrapper {
            display: block;
            padding: 6px 12px;
            &:hover {
                box-shadow: 0 0 4px 2px rgba(197, 203, 218, 0.5);
            }
            &.ant-checkbox-wrapper-checked {
                color: $primary-color;
            }
        }
    }
    .z-scheduling-popover-title {
        color: #333333;
        font-weight: 600;
        padding: 10px 15px;
        font-size: 16px;
    }
    $-dot-w: 14px;
    .z-scheduling-dot {
        width: $-dot-w;
        height: $-dot-w;
        display: inline-block;
        border-radius: 50%;
        vertical-align: middle;
        background-color: #d9d9d9;
        & + * {
            vertical-align: middle;
            margin-left: 6px;
        }
    }
    .z-scheduling-dot-p {
        padding: 0;
        margin: 0;
        font-size: 12px;

        cursor: default;
        & + .z-scheduling-dot-p {
            margin-top: 4px;
        }
    }
    .z-scheduling-icon {
        color: #f7f7fa;
        font-size: 18px;
    }

    //用于包裹Tag组件，让多个Tag换行后保持上下间距
    .z-cell-tag {
        display: inline-block;
        padding: 2px 0px;
        .ant-tag {
            white-space: normal;
            word-break: break-all;
        }
    }
    .z-tag-white {
        border: 1px solid #cccccc;
        color: #333333;
    }
    $--w: 16px;
    //圆角矩形颜色小框
    .z-schedul-color-span {
        display: inline-block;
        width: $--w;
        height: $--w;
        border-radius: 3px;
        vertical-align: -0.25em;
        margin-right: 4px;
    }
    .z-scheduling-next-btn{
        flex:1;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        color: #333333;
        height: 100%;
    }
}
